package com.jsz.peini.common.constants;

import java.util.ResourceBundle;


public class Constants {
	public static ResourceBundle properties = ResourceBundle.getBundle("config");
	
	//方法调取返回值
	public static final int SUCCESS = 1;//成功
	public static final String SUCCESS_DESC = "成功";
	public static final int FAIL = 0;//失败
	public static final int EXCEPTION = 99;//异常
	public static final String EXCEPTION_DESC = "网络请求异常，请稍后再试";
	public static final int INVALID = 9;//身份失效
	public static final int NOPAYPASS = 8;//没有支付密码
	public static final int INFO_INVALIDATE = 7;//未完善资料
	
	public static final int SUCCESS_SHOP = 101;//优惠买单未评价
	public static final int SUCCESS_TASK = 104;//任务买单未评价
	
	//短信类型
	public static final int SMS_YZM = 1;//验证码
	public static final int SMS_ORDER = 2;//订单提醒
	
	//商家搜索展示结果类型
	public static final int SELLER_SEARCH_SELLER = 1;//商家
	public static final int SELLER_SEARCH_WORD = 2;//关键字列表
	
	//交易类型
	public static final int PAYMENT_IN=1;//收入
	public static final int PAYMENT_OUT=2;//支出
	
	//交易方式
	public static final int PAY_GOLD=1;//金币
	public static final int PAY_SCORE=2;//积分
	public static final int PAY_ZFB=3;//支付宝
	public static final int PAY_WX=4;//微信
	
	//订单状态
	public static final int ORDER_YFB = 1;//已发布
	public static final int ORDER_DFK = 2;//待付款
	public static final int ORDER_DPJ = 3;//待评价
	public static final int ORDER_YWC = 4;//已完成
	public static final int ORDER_YGB = 5;//已关闭
	
	//优惠券领取
	public static final int COUPON_GET_HD = 1;//活动领取
	public static final int COUPON_GET_JF = 2;//积分领取
	public static final int COUPON_GET_JB = 3;//金币领取
	public static final int COUPON_GET_XF = 4;//消费领取
	public static final int COUPON_GET_RW = 5;//任务领取
	public static final int COUPON_GET_LSXF = 6;//临时赠送消费领取
	public static final int COUPON_GET_LSRW = 7;//临时赠送任务领取
	public static final int COUPON_GET_LSZD = 8;//临时赠送指定领取
	
	//优惠券使用规则
	public static final int COUPON_RULE_MJ = 1;//满减
	public static final int COUPON_RULE_FW = 2;//优惠范围不参与积分赠送
	public static final int COUPON_RULE_YHJ = 3;//使用优惠券不参与积分赠送
	public static final int COUPON_RULE_JB = 4;//优惠券与金币折扣不能同时存在
	
	//优惠券范围
	public static final int COUPON_RANGE_DY = 1;//根据地域
	public static final int COUPON_RANGE_LX = 2;//根据类型
	public static final int COUPON_RANGE_DP = 3;//根据店铺
	
	//举报类型
	public static final int REPORT_QUESTION = 1;//问题反馈
	public static final int REPORT_PEOPLE = 2;//举报人
	public static final int REPORT_SELLER = 3;//举报商家
	public static final int REPORT_TASK = 4;//举报任务
	public static final int REPORT_IMAGE = 5;//举报照片
	
	//举报原因
	public static final int REPORT_NOGOLD = 1;//商家不允许使用金币支付
	public static final int REPORT_PAYCASH = 2;//商家说可用优惠价支付现金
	public static final int REPORT_WRONGHEAD = 3;//头像/资料作假
	public static final int REPORT_SRGG = 4;//骚扰广告
	public static final int REPORT_ZP = 5;//诈骗/托
	public static final int REPORT_SQDS = 6;//色情低俗
	public static final int REPORT_EYSR = 7;//恶意骚扰/语言不文明
	
	public static final long MONTH_MIL_SECONDS = 30L*24L*3600L*1000L;   //一个月的毫秒数
	public static final int MONTH_SECONDS = 30*24*3600;   //一个月的秒数
	
	//活动人数限制
	public static final int OFFICAL_PARTY_MAX_NUM = Integer.parseInt(properties.getString("personal_party_max_num"));
	public static final int PERSONAL_PARTY_MAX_NUM = Integer.parseInt(properties.getString("offical_party_max_num"));
	
}
